package com.kelvin.paopao.injector.modules;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.kelvin.paopao.PaoPaoApplication;
import com.kelvin.paopao.adapter.AddImageAdapter;
import com.kelvin.paopao.injector.PerActivity;
import com.kelvin.paopao.module.base.IBasePresenter;
import com.kelvin.paopao.module.person.edit.IPersonDetailEditPresenter;
import com.kelvin.paopao.module.person.edit.PersonDetailEditActivity;
import com.kelvin.paopao.module.person.edit.PersonDetailEditPresenter;

import dagger.Module;
import dagger.Provides;

/**
 * Created by Administrator on 2017/5/14.
 */

@Module
public class PersonDetailEditModule {
    private PersonDetailEditActivity mView;

    public PersonDetailEditModule(PersonDetailEditActivity view) {
        this.mView = view;
    }


    @PerActivity
    @Provides
    public IPersonDetailEditPresenter providePresenter() {
        return new PersonDetailEditPresenter(mView);
    }
}
